package com.dong.designpattern.factory.factorymethod;

import com.dong.designpattern.factory.Car;
import com.dong.designpattern.factory.Movable;

/**
 * 工厂方法
 *
 * @author by jiweidong on 2021/11/18.
 */
public class CarFactory {
    public Movable create() {
        System.out.println("a car created");
        return new Car();
    }
}
